package com.android.hedgehog;

import java.util.HashMap;
import java.util.Map;

import com.scoreloop.client.android.core.controller.RankingController;
import com.scoreloop.client.android.core.controller.RequestController;
import com.scoreloop.client.android.core.controller.RequestControllerObserver;
import com.scoreloop.client.android.core.controller.UserController;
import com.scoreloop.client.android.core.model.Session;
import com.scoreloop.client.android.core.model.User;

public class ScoreManager2 implements RequestControllerObserver {

	final RankingController globalRankingController = new RankingController(
			this);
	UserController myUserController = new UserController(this);

	@Override
	public void requestControllerDidFail(RequestController arg0, Exception arg1) {
		// TODO Auto-generated method stub

	}

	@Override
	public void requestControllerDidReceiveResponse(RequestController arg0) {
		

	}

	public void uploadData() {
		User user = Session.getCurrentSession().getUser();
		Map<String, Object> userContext = new HashMap<String, Object>();
		userContext.put("username", "Human");
		user.setContext(userContext);
		myUserController.setUser(user);
		myUserController.submitUserContext();

	}

}
